package com.example.user.controller;

import com.example.user.service.UserService;
import com.usian.model.article.dtos.ApArticleCheckedDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.pojos.ApUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.Response;

@RestController
public class ArticleController {
    @Autowired
    private UserService userService;
    @PostMapping("user/v1/checked_article")
    public ResponseResult checkedArticle(@RequestBody ApArticleCheckedDto apArticleCheckedDto){
       return userService.checkedArticle(apArticleCheckedDto);
    }
    @GetMapping("/user/v1/get_user_by_id")
    public ApUser getUserById(){
        return userService.getUserById();
    }
}
